<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  <title>生成HTML</title>
  <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  <link href="css/base.css" rel="stylesheet" type="text/css">
</head>

<body background="images/allbg.gif">
  <div class="bodytitle mt-3">
    <div class="bodytitleleft"></div>
    <div class="bodytitletxt" style="padding-left:10px;">HTML更新</div>
  </div>
  <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center"  class="table maintable table-bordered"
    style="background:#CFCFCF;">
    <form name="form1" action="makehtml_freelist_action.php" method="get" target='stafrm'>
      <tr>
        <td colspan="2" bgcolor="#EDF9D5" background="images/tbg.gif">
          <table width="98%" border="0" cellpadding="0" cellspacing="0" class="table-borderless">
            <tr>
              <td width="30%" height="18" style="padding-left:10px;"><strong>更新自由列表HTML：</strong></td>
              <td width="70%" align="right"><button type="button" name="b113"
                  onClick="location='freelist_main.php';" class="btn btn-secondary btn-sm">管理自由列表</button>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td width="108" height="20" bgcolor="#FFFFFF">&nbsp;&nbsp;起始ID：</td>
        <td width="377" height="20" valign="top" bgcolor="#FFFFFF">
          <strong>&nbsp;&nbsp;</strong>
          <input name="startid" type="text" id="startid" size="10" <?php  if(!empty($aid)) echo " value='$aid'"; ?>>
          （空或0表示从头开始）
        </td>
      </tr>
      <tr>
        <td height="20" valign="top" bgcolor="#FFFFFF">&nbsp;&nbsp;结束ID：</td>
        <td height="20" valign="top" bgcolor="#FFFFFF">
          <strong>&nbsp;&nbsp;</strong>
          <input name="endid" type="text" id="endid" size="10" <?php  if(!empty($aid)) echo " value='$aid'"; ?>>
          （空或0表示直到结束ID）
        </td>
      </tr>
      <tr>
        <td height="20" bgcolor="#FFFFFF">&nbsp;&nbsp;每批生成：</td>
        <td height="20" bgcolor="#FFFFFF"> <strong>&nbsp;&nbsp;</strong>
          <input name="pagesize" type="text" id="pagesize" value="100" size="8">
          个文件</td>
      </tr>
      <tr>
        <td height="35" colspan="2" bgcolor="#ffffff" align="center">
            <button type="button" onClick="document.form1.submit();"  class="btn btn-secondary">开始生成HTML</button>
          &nbsp; </td>
      </tr>
    </form>
    <tr>
      <td height="20" colspan="2" bgcolor="#F9FCEF">
        <table width="100%">
          <tr>
            <td width="74%">进行状态： </td>
            <td width="26%" align="right">
              <script language='javascript'>
                function ResizeDiv(obj, ty) {
                  if (ty == "+") document.all[obj].style.pixelHeight += 50;
                  else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
                }
              </script>
              [<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>]
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td colspan="2" id="mtd">
        <div id='mdv' style='width:100%;height:100;'>
          <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
        </div>
        <script language="JavaScript">
          document.all.mdv.style.pixelHeight = screen.height - 360;
        </script>
      </td>
    </tr>
  </table>
</body>

</html>